package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DomainObjectName implements ObjectName {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName domainName;

    public DomainObjectName(int beginIndex, SchemaQualifiedName domainName) {
        this.beginIndex = beginIndex;
        this.endIndex = domainName.getEndIndex();
        this.domainName = domainName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getDomainName() {
        return domainName;
    }
    
}
